<?php
include '../../common.inc.php';
$pdo = new PDO('mysql:host=192.168.1.19;dbname=caiji', 'root', 'xddlxdcw');
$result = $pdo->query("select * from create_commercial_folder");
$rs = $result->fetchAll();
$aimFolder = array("D:/syc");
__($rs)->map(function($item) use ($aimFolder){
	$aimFolder[] = $item['品牌'];
	$aimFolder[] = $item['车系名称'];
	$aimFolder[] = $item['车款名称'];
	$aim = implode('/', $aimFolder);
	$folder = iconv('utf-8','gb2312', $aim);
	var_dump(mkdir($folder, 0777, true));
});